package com.qf.day12_4;

/**
 * @author wgy
 * @version V1.0
 * @Project day12
 * @Package com.qf.day12_4
 * @Description: ${TODO}
 * @Date 2021/6/2 16:12
 */
public class Person {
    String name;
    int age;
    static int count;
    public Person(){
        //省略类名.
        Person.count++;
    }


    public void show(){
        System.out.println("姓名:"+this.name+" 年龄:"+this.age);
    }
}
